#pragma once

class Dialog
{
private:
	double time = 0;
	Image * image;
	double scale = 0.2;

public:
	Dialog(const std::wstring & picname, int x, int y);
	virtual ~Dialog() = default;

	void update(double dtime);
	void draw(Graphics * graphics);
	virtual int getcmd(int x, int y) = 0;

	int width, height;
	int x, y;
};

class FailDlg :public Dialog
{
public:
	FailDlg(const std::wstring & picname, int x, int y);
	~FailDlg() = default;

	int getcmd(int x, int y) override;
};

class WinDlg :public Dialog
{
public:
	WinDlg(const std::wstring & picname, int x, int y);
	~WinDlg() = default;

	int getcmd(int x, int y) override;
};